/*
Autor: Alexander Savochkin, 2010
New BSD License
*/

#pragma once

#include <string>

using std::string;

namespace SRCLF
{
	/**
	@class Response
	@brief Static methods of Response class create response strings to send to client
	*/
	class Response 
	{
		static const char* str_access_denied_code;
		static const char* str_captured_code;
		static const char* str_unknown_channel_code;
		static const char* str_command_parse_error_code;
	public:
		static void onGetInput(string& result,double input_value);
		static void onGetOutput(string& result,double output_value);
		static void onSetOutput(string& result);
		static void onDisable(string& result);
		static void onKeep(string& result,double keep_value);
		static void onControlCaptured(string& result);
		static void onControlReleased(string& result);
		static void onAccessDenied(string& result);
		static void onOtherClientCapturedControl(string& result);
		static void onUnknownChannelName(string& result, const string& channel_name);
		static void onCommandParseError(string& result);
	};

} //namespace SRCLF
